package zl.osimall.common.service;

import com.github.pagehelper.PageInfo;
import zl.osimall.common.exception.SteduException;
import zl.osimall.common.bean.Category;

import java.util.List;

public interface CategoryService {
    boolean add(Category c) throws SteduException;

    boolean delete(Integer id) throws SteduException;

    boolean update(Category c) throws SteduException;

    Category selectById(Integer id);

    Category selectByName(String name);

    List<Category> selectAllParent();

    PageInfo<Category> selectByLike(Category c , Integer pageNum, Integer pageSize);

    List<Category> selectCondition(Category c);
}
